home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: ncrgw2.ncr.com!ncrhub2!lznj2!lziss3!netnews
- From: arnold.bursian@germany.ncr.com (Arnold Bursian)
- Subject: Re: Opening Win '95/NT filenames in MSVC++ 4.0 -- Problems
- Message-ID: <DooGos.LuD@lziss3.lincroftnj.ncr.com>
- Sender: netnews@lziss3.lincroftnj.ncr.com (51[news]-Netnews Admin)
- Reply-To: arnold.bursian@germany.ncr.com
- Organization: AT&T GIS Lincroft, NJ USA
- X-Newsreader: Forte Free Agent 1.0.82
- References: <graham.3.000A5A2A@faculty.law.duke.edu>
- Date: Fri, 22 Mar 1996 16:32:48 GMT
-
- On Mon, 18 Mar 1996 10:21:03, graham@faculty.law.duke.edu wrote:
-
- >I am trying to execute the following line of code on my Win95 machine. I'm
- >using MSVC++ 4.0, and I've compiled it as an MS-DOS, Quick-Win, and
- >Windows application. (The compiler and AppWizard do not present me with a
- >"console application" option.)
-
- > if (_access ("C:\\work\\lawsnews.html", 0) < 0) {
-
- > The preceding call to _access always returns less than 0--despite the fact
- >that I know the file exists. Short filenames (MS-DOS filenames) work fine:
-
- > if (_access ("C:\\work\\will.wrk", 0) < 0) {
-
- > I can't open or verify the existence of files with non-MS-DOS names. Could
- >anyone redirect my wayward steps? Many thanks!!
-
- >Tony Graham
- >graham@faculty.law.duke.edu
-
- I looked up the documentation and it doesn't say anything about this
- subject. Maybe you should use:
- if (_access ("C:\\work\\lawsne~1.htm", 0) < 0) {
- instead.
-
- Greeting, Arnold 8-)
-
-
-